Adwaita: axes borders of notebooks inside frame
authorLapo Calamandrei <calamandrei@gmail.com>
Tue, 21 Oct 2014 13:36:22 +0000 (15:36 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Tue, 21 Oct 2014 13:37:39 +0000 (15:37 +0200)
This is what the old adwaita did, not having a better solution for
removing double borders, better to have this back even if it can
be problematic in certain cases.

gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index e7905b5d21cf2f4546a7be5a878d742734eb4e26..eb9c5d6fd7760fe00066e889c61501b7c76f37ff 100644 (file)
@@ -1564,9 +1564,9 @@ column-header.button.dnd { // for treeview-like derive widgets
     &.left { border-left-width: 0; }
     &:backdrop { border-color: $backdrop_borders_color; }
   }
+
   &.header {
     // FIXME: double borders in some case, can't fix it w/o a class tho
-    // FIXME: doesn't work on dark var
     background-color: mix($bg_color, $borders_color, 70%);
 
     // this is the shading of the header behind the tabs
@@ -1606,6 +1606,9 @@ column-header.button.dnd { // for treeview-like derive widgets
       box-shadow: none;
     }
   }
+
+  .frame > &.frame { border: none; } // axes borders when the notebook is inside a frame
+
   tab {
     border-width: 0;
     border-style: solid;
index 47dd882849e61d04577e5de0c0f6cf34bd22de5b..7e1d72c4e87508ff47645b7e3973db01bd71f958 100644 (file)
@@ -2248,6 +2248,8 @@ GtkCalendar.header column-header .button.titlebutton, column-header .button:hove
     .notebook.header:backdrop {
       background-color: #2f3434;
       box-shadow: none; }
+  .frame > .notebook.frame {
+    border: none; }
   .notebook tab {
     border-width: 0;
     border-style: solid;
index 0d4c33e9cea45457bcc6a707ff49a9e8dbfe9c3a..9c5c811b7f2f611f49d4f805892341fbfb038440 100644 (file)
@@ -2245,6 +2245,8 @@ GtkCalendar.header column-header .button.titlebutton, column-header .button:hove
     .notebook.header:backdrop {
       background-color: #d4d4d4;
       box-shadow: none; }
+  .frame > .notebook.frame {
+    border: none; }
   .notebook tab {
     border-width: 0;
     border-style: solid;